package com.eastfair.venueservice.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.annotation.model.BaseVoGroupClass;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import static com.eastfair.core.utils.DateUtils.DEFAULT_DATE_TIME_FORMAT;

/**
 * <p>
 * 实体类
 * 展会服务商关系
 * </p>
 *
 * @author linan
 * @since 2022-07-15
 */
@Data
@ApiModel(value = "ExhibitionServiceProviderVO", description = "展会服务商关系")
public class ExhibitionServiceProviderVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long id;

    /**
     * 是否启用（确认状态）：1是 已确认；0否 未确认
     */
    @ApiModelProperty(value = "是否启用（确认状态）：1是 已确认；0否 未确认")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long tenantId;
    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long exhibitionManageId;
    /**
     * 服务商类型
     */
    @ApiModelProperty(value = "服务商类型")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "服务商类型长度不能超过255")
    private String serviceProviderType;
    /**
     * 服务商id
     */
    @ApiModelProperty(value = "服务商id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long serviceProviderId;
    /**
     * 服务商名称
     */
    @ApiModelProperty(value = "服务商名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String serviceProviderName;
    /**
     * 展会服务商场地关系
     */
    @ApiModelProperty(value = "展会服务商场地关系")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<ServiceProviderSpaceVO> serviceProviderSpaceList;
    /**
     * 展会服务商关系
     */
    @ApiModelProperty(value = "展会服务商关系")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<ExhibitionServiceProviderVO> exhibitionServiceProviderList;
    /**
     * 场馆展会id
     */
    @ApiModelProperty(value = "场馆展会id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long vbExhibitionId;
    /**
     * 公司编码
     */
    @ApiModelProperty(value = "公司编码")
    @Size(max = 64, message = "公司编码长度不能超过64")
    private String companyCode;

    /**
     * 第一次失效时间
     */
    @ApiModelProperty(value = "第一次失效时间")
    @TableField(value = "valid_end_time")
    @Excel(name = "第一次失效时间", format = DEFAULT_DATE_TIME_FORMAT, width = 20)
    private LocalDateTime validEndTime;
    /**
     * 统一社会信用代码
     */
    @ApiModelProperty(value = "统一社会信用代码")
    @Size(max = 255, message = "统一社会信用代码长度不能超过255")
    private String uscc;

}
